home *** CD-ROM | disk | FTP | other *** search
- on molette monPas
- global g1erSprLoc, gBoutons, gMol, gScopeSu, gPosVideo, gPosDebP, gPosDebS, gPosDebE, gPosFin
- if monPas <> 0 then
- set gMol to gMol + integer((monPas / 8) + 1)
- if gMol < 0 then
- set gMol to 9
- end if
- if gMol > 9 then
- set gMol to 0
- end if
- set gPosVideo to gPosVideo + (monPas mod 240)
- set gPosVideo to gPosVideo - (gPosVideo mod 2)
- if gPosVideo > 239 then
- set gPosVideo to gPosVideo - 239
- else
- if gPosVideo < 0 then
- set gPosVideo to 239 + gPosVideo
- end if
- end if
- gBoutons(habille, g1erSprLoc + 12, "BTGMOL " & gMol)
- gScopeSu(SetTime, gPosDebE + gPosDebS + gPosDebP + gPosVideo)
- go(the frame)
- end if
- end
-
- on mouseDown
- global gBoutons, g1erSprLoc, gNumSpr, gTraduit, gScopeSu, gPosVideo, gPosDebP, gPosDebS, gPosDebE, gPosFin
- curseur(9)
- set gNumSpr to g1erSprLoc + 12
- set monLocV to the mouseV
- set firstLocH to the mouseH
- set precLocH to firstLocH
- gScopeSu(SetCadence, 0)
- gBoutons(habille, g1erSprLoc + 11, "BTPBOU 1")
- set the text of cast "ZI5" to getAt(gTraduit, 52)
- set gPosVideo to gScopeSu(GetTime) - gPosDebE - gPosDebS - gPosDebP
- repeat while the stillDown = 1
- set monLocH to the mouseH
- set diff to precLocH - monLocH
- if abs(diff) > 3 then
- molette(precLocH - monLocH)
- set precLocH to monLocH
- end if
- end repeat
- set gPosVideo to gScopeSu(GetTime) - gPosDebE - gPosDebS - gPosDebP
- end
-
- on mouseUp
- global gSurvolPrec, gNumSpr, g1erSprLoc
- if gNumSpr = (g1erSprLoc + 12) then
- set gSurvolPrec to -1
- else
- pass()
- end if
- end
-